package com.victor.common.persistence.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户上传图片记录表
 * </p>
 *
 * @author victor
 * @since 2018-09-19
 */
@TableName("users_images")
public class UsersImages extends Model<UsersImages> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户上传图片记录表
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 用户id
     */
	private Integer userid;
    /**
     * 图片路径
     */
	@TableField("img_path")
	private String imgPath;
    /**
     * 创建时间
     */
	private Date createtime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "UsersImages{" +
			"id=" + id +
			", userid=" + userid +
			", imgPath=" + imgPath +
			", createtime=" + createtime +
			"}";
	}
}
